#pragma once

#ifndef SafeRelease
#define SafeRelease(p) { if(p){ (p)->Release();  (p)=NULL;} }
#endif

#define SafeDelete(p) { if(p) { delete (p); (p)=NULL; } }
